<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
		<input type="text" name="txt" id="txts"/>

 </body>
</html>
<script>
	//
	var oTxt = document.getElementById('txts');
	//在IE67版本下,表单元素的name属性也会当做ID
	console.log(oTxt);
</script>
